// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    let acc = wx.getAccountInfoSync()
    if(acc.miniProgram.envVersion == 'develop'){
      this.globalData.base = this.globalData.baseDev
    }else{
      this.globalData.base = this.globalData.basePro
    }
  },
  globalData: {
    sphId:'sph7nScIaG6KtxI',
    baseDev:'https://xiaomaocr.com',
    // baseDev:'http://192.168.77.40:8091',
    basePro:'https://xiaomaocr.com',
    header:{
      'content-type': 'application/x-www-form-urlencoded'
    },
    base:'',
    userInfo: null,
  }
})
// 开启完整调试模式（需用户操作）
wx.setEnableDebug({
  enableDebug: false,
  success: () => console.log('调试模式已激活')
})
